package Employee;

import java.util.Scanner;

public class BasePlusSalesEmployee extends SalesEmployee{
    double BaseSalary;
    int Month;
    double Commission;
    @Override
    public double getSalary(int month) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入名字");
        String Name = scanner.nextLine();

        System.out.println("请输入生日月份");
        this.Month = scanner.nextInt();

        System.out.println("请输入底薪");
        this.Commission = scanner.nextDouble();

        System.out.println("请输入提成");
        this.BaseSalary = scanner.nextDouble();

        return Month==month?BaseSalary+Commission+100:BaseSalary+Commission;

    }
}
